package fr.cephb.mapreduce;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;


public class CodingSnpReducer
	extends Reducer<Text, IntWritable, Text, IntWritable>
	{
	@Override
	public void reduce(
			Text key,
			Iterable<IntWritable> values,
			Context context) throws java.io.IOException ,InterruptedException
			{
			int count=0;
			for(IntWritable i:values) count+=i.get();
			context.write(key, new IntWritable(count));
			}
	}
